package com.roya.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.roya.dao.INoticeDao;
import com.roya.dto.NoticeDTO;
import com.roya.service.INoticeService;
@Service("noticeServiceImpl")
@Transactional
public class NoticeServiceImpl extends BaseServiceImpl implements INoticeService {

	@Autowired
	private INoticeDao noticeDaoImpl;

	@Override
	public int addNotice(NoticeDTO dto) throws SQLException {
		return noticeDaoImpl.addNotice(dto);
	}

	@Override
	public List<NoticeDTO> listNotice(NoticeDTO dto) throws SQLException {
		return noticeDaoImpl.listNotice(dto);
	}

	@Override
	public NoticeDTO infoNotice(NoticeDTO dto) throws SQLException {
		return noticeDaoImpl.infoNotice(dto);
	}

	@Override
	public int delNotice(NoticeDTO dto) throws SQLException {
		return noticeDaoImpl.delNotice(dto);
		
	}

	@SuppressWarnings("rawtypes")
	@Override
	public int updateNotice(Map map) throws SQLException {
		return noticeDaoImpl.updateNotice(map);
		 
	}
	

}
